home *** CD-ROM | disk | FTP | other *** search
/ 17 Bit Software 6: Level 6 / 17 Bit - Level 6 (1998)(Epic Marketing)[!].iso / quartz / q0711.dms / q0711.adf / Graphics / GraphicalTricks / Example6.c < prev    next >
Text File  |  1992-07-29  |  4KB  |  93 lines

  1. /***********************************************************/
  2. /*                                                         */
  3. /* Amiga C Encyclopedia (ACE) V3.0      Amiga C Club (ACC) */
  4. /* -------------------------------      ------------------ */
  5. /*                                                         */
  6. /* Book:    ACM Graphics                Amiga C Club       */
  7. /* Chapter: GraphicalTricks             Tulevagen 22       */
  8. /* File:    Example6.c                  181 41  LIDINGO    */
  9. /* Author:  Anders Bjerin               SWEDEN             */
  10. /* Date:    92-04-29                                       */
  11. /* Version: 1.00                                           */
  12. /*                                                         */
  13. /*   Copyright 1992, Anders Bjerin - Amiga C Club (ACC)    */
  14. /*                                                         */
  15. /* Registered members may use this program freely in their */
  16. /*     own commercial/noncommercial programs/articles.     */
  17. /*                                                         */
  18. /***********************************************************/
  19.  
  20. /* This example demonstrates how to scroll a large mountain.  */
  21. /* The mountain is much wider than the screen. We can         */
  22. /* therefore only see a part of the mountain as we scroll it. */
  23. /*                                                            */
  24. /* Note that the mountain is sometimes "flashing"! The reason */
  25. /* why this happens is that we are scrolling the mountain at  */
  26. /* the same time as we display it. If we are unlucky we have  */
  27. /* only scrolled some of the BitPlanes when the mountain is   */
  28. /* redrawn, and thus the wrong coulours are used. (When we    */
  29. /* scroll a RastPort we actually move the BitPlanes           */
  30. /* separately. If you are using a display with a lot of       */
  31. /* colours, BitPlanes, it may happen that we do not manage to */
  32. /* move all of them within one display frame.)                */
  33. /*                                                            */
  34. /* To avoid this flickering we need to use a double buffered  */
  35. /* display, where we show one of the screens as we scroll and */
  36. /* redraw the other. See next example.                        */
  37.  
  38. I am sorry but this file is only available for registered
  39. members. 
  40.  
  41. The registration fee is only £30, $60, SEK 300, or similar
  42. amount in your own currency (price includes everything). The
  43. Amiga C Encyclopedia is the largest collection of documents,
  44. examples and utilities in C for the Amiga and it is still among
  45. the cheapest manuals. But this is not all, a registered owner
  46. will also get:
  47.  
  48.   1. Two disks containing the last parts of the encyclopedia.
  49.      The disks will be sent by first class air mail.
  50.  
  51.   2. Registration card for the Amiga C Club (ACC).
  52.  
  53.   3. Immediate information about updates.
  54.  
  55.   4. Updated versions of the encyclopedia for only the cost of
  56.      disks plus postage and packing.
  57.  
  58.   5. Assistance with digitizing colour pictures and sampling
  59.      sound effects.
  60.  
  61.   6. Unlimited help with your C programs. You never have to be
  62.      alone with your problems.
  63.  
  64.   7. The right to use parts of the manual in your own
  65.      commercial/non-commercial programs/articles.
  66.  
  67. Can any other manual give you all this???
  68.  
  69. The simplest way of paying is to include the money in a letter
  70. in cash. US dollar bills, English pounds or Swedish SEK are
  71. preferred, but all currencies are accepted. You can also send
  72. the money as a "Postal Money Order", ask your local bank or
  73. post office. Please do not use cheques. It is sadly extremely
  74. expensive to cash a foreign cheque here in Sweden.
  75.  
  76. If you live in Scandinavia you can send the money to "Svenska
  77. Post Girot, postgiro konto: 641 88 30 - 3, betalnings-
  78. mottagare: Datra".
  79.  
  80. Please send the registration fee together with your complete
  81. address to:
  82.  
  83.   Datra, Amiga C Club
  84.   Anders Bjeri
  85.   Tulevagen 22
  86.   181 41  LIDINGO
  87.   SWEDEN
  88.  
  89. I have worked for more than four years now with this
  90. encyclopedia, and with your help I can continue to improve it.
  91.  
  92. Happy programming!!!
  93.